import { lazy } from "react"
import { Navigate } from "react-router-dom"
const Home = lazy(() => import("../view/home"))
const Login = lazy(() => import("../view/login"))

const routes = [
    {path: '/login', element: <Login />},
    {path: '/home', element: <Home />},
    {path: '/', element: <Navigate to='/login' />},
]

export default routes
